package com.songlanyun.modules.kqbank.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.songlanyun.modules.kqbank.dao.KqBankSignDao;
import com.songlanyun.modules.kqbank.dao.KqBankSignRecordDao;
import com.songlanyun.modules.kqbank.entity.KqBankSign;
import com.songlanyun.modules.kqbank.entity.KqBankSignRecord;
import com.songlanyun.modules.kqbank.service.KqBankSignRecordService;
import com.songlanyun.modules.kqbank.service.KqBankSignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class KqBankSignRecordServiceImpl extends ServiceImpl<KqBankSignRecordDao, KqBankSignRecord> implements KqBankSignRecordService {

    @Autowired
    private KqBankSignRecordDao kqBankSignRecordDao;
    @Override
    public void saveRecord(KqBankSignRecord record) {
        KqBankSignRecord kqBankSignRecord = new KqBankSignRecord();
        kqBankSignRecord.setUserId(record.getUserId());
        kqBankSignRecord.setSignId(record.getSignId());
        kqBankSignRecord.setSigeCode(String.valueOf(System.currentTimeMillis()));
        kqBankSignRecordDao.insert(kqBankSignRecord);
    }
}
